package com.hong.controller;


import com.hong.dto.relationship.CreateRelationshipParam;
import com.hong.service.RelationshipService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@Api(value = "关系",tags = {"关系"})
@RestController
@RequestMapping("relationship")
public class RelationshipController {

    @Autowired
    private RelationshipService relationshipService;

    @ApiOperation("创建")
    @PostMapping("create")
    public Boolean create(@RequestBody CreateRelationshipParam param){
       return relationshipService.create(param);
    }


}
